package com.julu.o2o.util;

import java.util.List;

public class ListUtil {
	/**
	 * 判断List是否为空
	 * @param ja
	 * @return
	 */
	public static <T> boolean isEmpty(List<T> list){
		if(list ==null || list.size() == 0){
			return true;
		}else{
			return false;
		}
	}
	
	/**
	 * 判断List是否不为空
	 */
	public static <T> boolean notEmpty(List<T> list){
		return !isEmpty(list);
	}
}
